package com.xinsoft.entity.dto;

import com.xinsoft.common.page.PageModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName MesShiftParam
 * @Description 生产计划查询对象
 * @Author lijie
 * @Date 2023/7/17 15:46 星期一
 * @Version 1.0
 */
@Data
public class MesProducePlantChartDTO implements Serializable {
    @ApiModelProperty(value = "统计值")
    private Integer count;

    @ApiModelProperty(value = "统计值属性")
    private String attName;

    public String getAttName(){
        //1-计划  2-下达  3-挂起  4-结案  5-派工 6-待产 7-开工 8-完工
        switch (attName) {
            case "1":
                return "计划";
            case "2":
                return "下达";
            case "3":
                return "挂起";
            case "4":
                return "结案";
            case "5":
                return "派工";
            case "6":
                return "待产";
            case "7":
                return "开工";
            case "8":
                return "完工";
        }
        return attName;
    }


    private static final long serialVersionUID = 1L;
}
